package com.ktjiaoyu.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjiaoyu.server.domain.dto.LoginDto;
import com.ktjiaoyu.server.domain.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 19416
* @description 针对表【t_admin】的数据库操作Service
* @createDate 2023-02-14 16:47:38
*/
public interface AdminService extends IService<Admin> {

    String login(LoginDto LoginDto );

    boolean checkCaptcha(String key,String captcha);

    IPage<Admin> selectByPage(Page<Admin> page, String query,String sort);

    int updataAdmin(Admin admin);

    // 保存操作员新增信息
    boolean saveAdmin(Admin admin);

    Admin getUserInfo();

    void logout();
}
